< previous page page_284 next page >

Page 284
12181-0284a.gif
Figure 10.11.
Adding the data modification
processing to the example.
Mixing the Methods
So far, you've seen how to use the automatic data access provided by Visual Basic's Data control and bound controls, as well as how to access the data directly with more control by using the ActiveX Data Objects. However, as you might already know or have guessed, no application uses only one of these access methods. Each form or function in an application might use one method or both to provide the functionality you need.
To see this, add several routines or enhancements to the address-book application that you've been creating in this book. First, you'll see how to add information to the TreeView control, and then how to display the correct information on the ListView control. Finally, you'll make a change to the data-entry form, frmAddressEntry, to give users new ways to select information when adding or modifying a record.
Populating the TreeView Control..
The TreeView control is the center of all activity in the address-book application. Initially, it will display a standard alphabetic selection list, as shown in Figure 10.12. This will allow users to go directly to a given letter in the alphabet to find a particular entry.
12181-0284b.gif
Figure 10.12.
The initial TreeView listing with
the letters of the alphabet.

 
< previous page page_284 next page >

If you like this book, buy it!